home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
6_14.lha
/
6_14
/
6_14a.c
next >
Wrap
Text File
|
1993-08-08
|
504b
|
19 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
/ class complex from section 6.3.1
/ rewritten to use member definitions
lass complex
double re, im;
ublic:
complex(double r, double i = 0) { re=r; im=i; }
complex operator+(complex j);
complex operator-(complex j);
complex operator-();
complex operator*(complex j);
friend ostream &operator<<(ostream &out, complex j); // DELETE
;